!
function (t) {
    function n(e) {
        if (i[e]) return i[e].exports;
        var o = i[e] = {
            exports: {},
            id: e,
            loaded: !1
        };
        return t[e].call(o.exports, o, o.exports, n), o.loaded = !0, o.exports
    }
    var i = {};
    return n.m = t, n.c = i, n.p = "", n(0)
}([function (t, n, i) {
    function e(t) {
        function n() {
            t.animate({
                top: "-=" + (t.find("li:first").height() + 12)
            }, 300, function () {
                t.css("top", "0").find("li:first").appendTo(t)
            })
        }
        var i = setInterval(n, 2e3);
        t.mouseover(function () {
            clearInterval(i)
        }).mouseout(function () {
            i = setInterval(n, 2e3)
        })
    }

    function o(t) {
        l(".laypop").show(), t.show(), r(t)
    }

    function c(t) {
        var n = l(".lay-login"),
            i = l(".lay-con");
        l(".laypop").hide(), n.hide(), i.hide(), t && t.preventDefault()
    }

    function r(t) {
        var n = l(window);
        t.css({
            left: (n.width() - t.width()) / 2,
            top: (n.height() - t.height()) / 2 + n.scrollTop()
        })
    }

    function a(t) {
        var n = l(".lay-con"),
            i = "http://i.7k7kimg.cn/zixun/2016/halloween/img/pop" + (t + 1) + ".png";
        n.css("background-image", "url(" + i + ")")
    }
    var l = i(4),
        s = i(2);



    l(function () {
        var t = l(".clist");
        l(".close-btn").click(function (t) {
            c(t)
        }), l(".login-btn").click(function (t) {
            c(t), qike.loginDialog.open()
        }), l(".loginQQ").click(function (t) {
            c(t), i(3).toQzoneLogin()
        }), l(".share-btn").click(function (t) {
            c()
        }), l(".other-btn").click(function (t) {
            c(t)
        }), l("#J-btn-add-favorite").click(function (t) {
            qike.utils.addFavorite(window.location.href, "7k7k涓囧湥鑺傛椿鍔�")
        }), t.on("click", "a", function (t) {
            var n = l(this),
                i = n.parent().index();
            return t.preventDefault(), qike.utils.login.isLogin() ? (a(i), void o(l(".lay-con"))) : void o(l(".tx1"))
        }), s(l("#J-pinglun"), 4030787373, e);
        var n = l(".glist"),
            r = 907978,
            u = n.find(".vote-num");
        l(".xia").on("click", function (t) {
            if (!qike.utils.login.isLogin()) return void o(l(".tx2"));
            var n = l(this).next().children(".vote-num").attr("optionid");
            t.preventDefault(), i(1)({
                contentid: r,
                $voteText: u,
                optionid: n,
                errHint: "鎶曠エ澶繃棰戠箒锛岃绋嶅悗鍐嶈瘯鍝�",
                cb: function () {
                    alert("鎶曠エ鎴愬姛")
                }
            })
        }), i(1)({
            contentid: r,
            $voteText: u
        })
    })


    
}, function (t, n) {
    function i(t, n) {
        var n = n || {},
            i = "http://api.news.7k7k.com/?app=vote&controller=vote&action=",
            e = n.optionid ? "vote" : "getdata",
            o = {};
        if (i += e, o.contentid = t, n.optionid) {
            if (!qike.utils.login.isLogin()) return void qike.loginDialog.open();
            o.optionid = n.optionid
        }
        $.ajax({
            url: i,
            dataType: "jsonp",
            data: o,
            success: function (t) {
                var i = t.state;
                if (0 == i) return void(n.errHint ? alert(n.errHint) : alert("涓€涓皬鏃跺彧鑳芥姇涓€娆＄エ鍝�"));
                var t = t.data || t[0].data;
                n.callback && n.callback(t), n.failure && n.failure(t), jsonpVoteFlag = !0
            }
        })
    }

    function e(t) {
        var n = 0,
            e = t.optionid || "",
            o = t.$voteText,
            c = (t.width || 0, t.$voteWidth || ""),
            r = t.$percent || "";
        errHint = t.errHint || "", i(t.contentid, {
            optionid: e,
            errHint: errHint,
            callback: function (i) {
                var a = 0,
                    l = 0,
                    s = o.length;
                for (a; a < s; a++) n += parseInt(i[o.eq(a).attr("optionid")].votes);
                for (t.cb && t.cb(e), l; l < s; l++) {
                    var u = parseInt(i[o.eq(l).attr("optionid")].votes),
                        p = parseInt(t.width * (u / n)),
                        d = parseInt(100 * (u / n)) + "%";
                    r && r.eq(l).text(d), c && c.eq(l).css("width", p), o.eq(l).text(u + "浜�")
                }
            }
        })
    }
    t.exports = e
}, function (t, n) {
    function i(t, n, i) {
        var e = t,
            o = 24,
            c = e.attr("data-page") || 1,
            r = n;
        $.ajax({
            url: "http://changyan.sohu.com/api/2/topic/comments?client_id=cyqHvdkcp",
            data: {
                topic_id: r,
                _ts: (new Date).getTime(),
                page_no: c,
                page_size: o,
                style: "floor",
                order_by: "time"
            },
            dataType: "jsonp",
            success: function (t) {
                var n = e[0];
                n.innerHTML = "", $.each(t.comments, function (t, i) {
                    var e = i.passport.nickname;
                    i.content;
                    i.content = i.content.replace(/\</g, "&lt;"), i.content = i.content.replace(/\[em\:(\d+)\:\]/g, "<img src='http://i.7k7kimg.cn/themes/cmt/$1.gif' />"), i.content = i.content.replace(/\[\:([a-zA-Z]+)(\d+)\]/g, "<img class='face' src='http://www.7k7kjs.cn/qike_public/emotion-new/$1/$2.gif' />"), n.innerHTML += "<li><em>" + e + "锛�</em>" + i.content + "</li>"
                }), i(e)
            }
        })
    }
    t.exports = i
}, function (t, n, i) {
    var e;
    e = function (t) {
        function n() {
            var t = null;
            "undefined" != typeof window.globalLogChannelType && (t = new Image, t.src = "http://tongji.7k7k.com/l.gif?p=" + window.globalLogChannelType), setTimeout(function () {
                qike.utils.subscribeModel.unSubscribe("login-success", n)
            }, 1)
        }

        function i(t, i) {
            var e = 0,
                o = 1800,
                c = 300,
                r = 0,
                a = {
                    w: 454,
                    h: 320
                };
            i = i || window, a.t = (i.screen.availHeight - 30 - a.h) / 2, a.l = (i.screen.availWidth - 10 - a.h) / 2, $.extend(a, t), qike.utils.subscribeModel.subscribe("login-success", n);
            var l = ["width=" + a.w + ",", "height=" + a.h + ",", "top=" + a.t + ",", "left=" + a.l + ",", "location=0,", "menubar=0,", "resizable=0,", "scrollbars=1,", "status=1,", "titlebar=1,", "toolbar=0"].join("");
            if (i.qike.utils.login.isLogin()) {
                clearInterval(r);
                try {
                    i.qike.loginDialog.close()
                } catch (t) {}
                return void i.qike.utils.subscribeModel.fire("login-success")
            }
            i.open(t.url, "_blank", l), r = setInterval(function () {
                if (i.qike.utils.login.isLogin()) {
                    clearInterval(r);
                    try {
                        i.qike.loginDialog.close()
                    } catch (t) {}
                    return void i.qike.utils.subscribeModel.fire("login-success")
                }
                e > o && clearInterval(r), e++
            }, c)
        }
        var e = "http://8.7k7k.com/Connect2.1/example/oauth/index.php?referer=",
            o = "http://zc.7k7k.com/Wx/oauth/index.php?referer=",
            c = encodeURIComponent("http://web.7k7k.com/api/qlogin.php?aid=3863&refer=" + window.location.href);
        return {
            custom: i,
            toQzoneLogin: function () {
                i({
                    url: e + c,
                    w: 500,
                    h: 520
                })
            },
            toWxLogin: function () {
                i({
                    url: o + c,
                    w: 500,
                    h: 520
                })
            }
        }
    }.call(n, i, n, t), !(void 0 !== e && (t.exports = e))
}, function (t, n) {
    t.exports = jQuery
}]);